home *** CD-ROM | disk | FTP | other *** search
- object Form1: TForm1
- Left = 192
- Top = 107
- Width = 788
- Height = 480
- Caption = 'ADO Transaction Processing Example'
- Color = clBtnFace
- Font.Charset = DEFAULT_CHARSET
- Font.Color = clWindowText
- Font.Height = -11
- Font.Name = 'MS Sans Serif'
- Font.Style = []
- OldCreateOrder = False
- PixelsPerInch = 96
- TextHeight = 13
- object Panel1: TPanel
- Left = 0
- Top = 0
- Width = 780
- Height = 113
- Align = alTop
- TabOrder = 0
- object DBNavigator1: TDBNavigator
- Left = 16
- Top = 80
- Width = 240
- Height = 25
- DataSource = DataSource1
- TabOrder = 0
- end
- object btnBeginTrans: TButton
- Left = 272
- Top = 80
- Width = 75
- Height = 25
- Caption = 'BeginTrans'
- TabOrder = 1
- OnClick = btnBeginTransClick
- end
- object btnCommitTrans: TButton
- Left = 360
- Top = 80
- Width = 75
- Height = 25
- Caption = 'Commit Trans'
- TabOrder = 2
- OnClick = btnCommitTransClick
- end
- object btnRollbackTrans: TButton
- Left = 448
- Top = 80
- Width = 75
- Height = 25
- Caption = 'Rollback Trans'
- TabOrder = 3
- OnClick = btnRollbackTransClick
- end
- object Memo1: TMemo
- Left = 1
- Top = 1
- Width = 778
- Height = 72
- Align = alTop
- Lines.Strings = (
-
- 'This example uses an ODBC Data Source Name called "Northwind DSN' +
- '". This DSN should point at the Northwind.mdb Access database.'
- ''
-
- 'Use the 3 buttons to test the transaction processing facilities ' +
- 'of the ODBC Access driver via ADO.')
- TabOrder = 4
- end
- object Button1: TButton
- Left = 536
- Top = 80
- Width = 145
- Height = 25
- Caption = 'Show Transaction Support'
- TabOrder = 5
- OnClick = Button1Click
- end
- end
- object DBGrid1: TDBGrid
- Left = 0
- Top = 113
- Width = 780
- Height = 340
- Align = alClient
- DataSource = DataSource1
- TabOrder = 1
- TitleFont.Charset = DEFAULT_CHARSET
- TitleFont.Color = clWindowText
- TitleFont.Height = -11
- TitleFont.Name = 'MS Sans Serif'
- TitleFont.Style = []
- end
- object ADOConnection1: TADOConnection
- Connected = True
- ConnectionString =
- 'Provider=MSDASQL.1;Persist Security Info=False;Data Source=North' +
- 'wind DSN;Connect Timeout=15;Extended Properties="DSN=Northwind D' +
- 'SN;DBQ=C:\Program Files\Microsoft Office\Office\Samples\Northwin' +
- 'd.mdb;DriverId=281;FIL=MS Access;MaxBufferSize=2048;PageTimeout=' +
- '5;";Locale Identifier=2057'
- LoginPrompt = False
- Left = 632
- Top = 16
- end
- object ADOTable1: TADOTable
- Active = True
- Connection = ADOConnection1
- CursorType = ctStatic
- TableName = 'Customers'
- Left = 712
- Top = 16
- end
- object DataSource1: TDataSource
- DataSet = ADOTable1
- Left = 552
- Top = 16
- end
- end
-